import request from '@/utils/request'

// 查询调拨预约单信息列表
export function listBookingAllot(query) {
  return request({
    url: '/stock/bookingAllot/list',
    method: 'post',
    data: query
  })
}

// 查询调拨预约单信息详细
export function getBookingAllot(id) {
  return request({
    url: '/stock/bookingAllot/' + id,
    method: 'get'
  })
}

// 新增调拨预约单信息
export function addBookingAllot(data) {
  return request({
    url: '/stock/bookingAllot/add',
    method: 'post',
    data: data
  })
}

// 修改调拨预约单信息
export function updateBookingAllot(data) {
  return request({
    url: '/stock/bookingAllot/update',
    method: 'post',
    data: data
  })
}

// 删除调拨预约单信息
export function delBookingAllot(id) {
  return request({
    url: '/stock/bookingAllot/delete/' + id,
    method: 'post'
  })
}

// 删除调拨预约单信息
export function auditBookingAllot(id) {
  return request({
    url: '/stock/bookingAllot/audit/' + id,
    method: 'post'
  })
}